package com.ruoyi.common.core.domain.user;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户地址管理对象 address
 *
 * @author ruoyi
 * @date 2025-06-05
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Integer id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userId;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 完整地址 */
    @Excel(name = "完整地址")
    private String fullAddress;

    /** 默认地址 */
    @Excel(name = "默认地址")
    private Long defaultAddress;

    /** 地址详情 */
    @Excel(name = "地址详情")
    private String addressDetails;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setContacts(String contacts)
    {
        this.contacts = contacts;
    }

    public String getContacts()
    {
        return contacts;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setFullAddress(String fullAddress)
    {
        this.fullAddress = fullAddress;
    }

    public String getFullAddress()
    {
        return fullAddress;
    }

    public void setDefaultAddress(Long defaultAddress)
    {
        this.defaultAddress = defaultAddress;
    }

    public Long getDefaultAddress()
    {
        return defaultAddress;
    }

    public void setAddressDetails(String addressDetails)
    {
        this.addressDetails = addressDetails;
    }

    public String getAddressDetails()
    {
        return addressDetails;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("contacts", getContacts())
                .append("phone", getPhone())
                .append("fullAddress", getFullAddress())
                .append("defaultAddress", getDefaultAddress())
                .append("addressDetails", getAddressDetails())
                .toString();
    }
}
